﻿<UserControl x:Class="FinMkts.Client.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="clr-namespace:FinMkts.Client.Controls;assembly=FinMkts.Client.Controls" mc:Ignorable="d"
    d:DesignHeight="428" d:DesignWidth="486">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ListBox ItemsSource="{Binding Instruments}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Name}"/>
                        <TextBlock Text=" - " />
                        <TextBlock Text="{Binding CurrencyCode}"/>
                        <TextBlock Text=" - " />
                        <TextBlock Text="{Binding Type}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Canvas Grid.Row="1">
            <Controls:DraggablePanel Height="152" Width="241" Canvas.Left="85" Canvas.Top="39" />
        </Canvas>
    </Grid>
</UserControl>
